'use strict';

const conn = require('../../libs/Conn');

module.exports = async function (params) {
    let ids = params.ids.split(',');
    let delObj = {
        delete_sign: 2,
    };
    let updateSql = `UPDATE engineering_file  SET ? WHERE engineering_id in (?);UPDATE engineering_information_file  SET ? WHERE engineering_id in (?);UPDATE engineering_progress_information_data  SET ? WHERE engineering_id in (?);`;
    await conn(updateSql, [delObj, ids,delObj,ids,delObj,ids]);
    return {success: true};
};